home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: Q:I just don't understand why...
- Date: 20 Apr 1996 09:24 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <20APR199609241258@erich.triumf.ca>
- References: <31776412.5F2A@mh1.hh.se>
- NNTP-Posting-Host: ftp.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <31776412.5F2A@mh1.hh.se>, "WeckstΘn, Mattias" <d95w@mh1.hh.se> writes...
-
- >editfont = guip_initfont(object, editfontstring);
- >generates a
-
- >"editfield.c", line 181: warning: improper pointer/integer combination: op "="
-
- It would seem that the compiler thinks editfont is a pointer, and the return
- value of guip_initfont() is an integer, or vice versa.
-
- Do you have a prototype for guip_initfont() in scope (probably by #including
- the appropriate header at the head of this source file.) Without a prototype,
- the compiler will assume the function returns an int.
-
- Since this is not a standard function, we can't make any definite comments
- without seeing a little more code, including the declaration of "editfont", ant
- prototype for guip_initfont().
-
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
- or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
- or: http:://vancouver-webpages.com/peter/index.html
-
-